const md5 = require('md5');
const moment = require('moment');

module.exports = {
  up: (queryInterface, Sequelize) => {
    return queryInterface.bulkInsert('user', [
      {
        id: 1,
        username: 'mt',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 2,
        username: 'zmouse',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 3,
        username: 'reci',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 4,
        username: 'jk1',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 5,
        username: 'jk2',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 6,
        username: 'jk3',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 7,
        username: 'jk4',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 8,
        username: 'jk5',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 9,
        username: 'jk6',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 10,
        username: 'jk7',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 11,
        username: 'jk8',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 12,
        username: 'jk9',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 13,
        username: 'jk10',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 14,
        username: 'jk11',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 15,
        username: 'jk12',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 16,
        username: 'jk13',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 17,
        username: 'jk14',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 18,
        username: 'jk15',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 19,
        username: 'jk16',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 20,
        username: 'jk17',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 21,
        username: 'jk18',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 22,
        username: 'jk19',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 23,
        username: 'jk20',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 24,
        username: 'jk21',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 25,
        username: 'jk22',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 26,
        username: 'jk23',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 27,
        username: 'jk24',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 28,
        username: 'jk25',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 29,
        username: 'jk26',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 30,
        username: 'jk27',
        password: md5('123456'),
        disable: false,
        userimg: 'img/default.jpg',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      }
    ]);
  },

  down: (queryInterface, Sequelize) => {
    return queryInterface.bulkDelete('user', null, {});
  }
};
